﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace Travel.BusinessLogic.Hotels
{
    class eRoomRental
    {
        public eRoomRental()
        {
        }

        public eRoomRental(DateTime from, String numberOfNights, String customer)
        {
            int numberOfDaysInt = Convert.ToInt32(numberOfNights);
            DateTime to = from.AddDays(numberOfDaysInt);

            MessageBox.Show(new HotelProxy().bookByDate(from.ToString("dd/MM/yyyy"), to.ToString("dd/MM/yyyy"), customer));
        }

        public eRoomRental(DateTime from, String numberOfNights, int room, String customer)
        {
            int numberOfDaysInt = Convert.ToInt32(numberOfNights);
            DateTime to = from.AddDays(numberOfDaysInt);

            MessageBox.Show(new HotelProxy().bookByRoom(from.ToString("dd/MM/yyyy"), to.ToString("dd/MM/yyyy"), room, customer));
        }
    }
}
